<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>购物车页面</title>

</head>
<body>
    <table>
        <thead>
            <tr>
                <th>商品序号</th>
                <th>商品名称</th>
                <th>商品图片</th>
                <th>商品价格</th>
                <th>购买数量</th>
                <th>商品总价</th>
            </tr>
        </thead>
        <tbody>
            {% for good in goods %}
            <tr>
                <td>{{forloop.counter}}</td>
                <td>{{good.goodsname}}</td>
                <td><img src="{{good.goodsimg}}" width="50" height="50"></td>
                <td>{{good.goodsprice}}</td>
                <td>{{good.buy_count}}</td>
                <td>{{good.allprice}}</td>
            </tr>
            {% endfor %}
        </tbody>
    </table>
</body>
</html>